package com.young.springdemo.service.component;

public class VideoFile extends Component {
    private String name;

    public VideoFile(String name) {
        this.name = name;
    }

    @Override
    public void add(Component component) {
        System.out.println("err");
    }

    @Override
    public void remove(Component component) {
        System.out.println("err");
    }

    @Override
    public Component get(int i) {
        System.out.println("err");
        return null;
    }

    @Override
    public void killVirus() {
        System.out.println("开始杀毒"+name+"video视频文件");
    }
}
